CC=arm-linux-gcc

SRC:=$(wildcard *.c)
# 定义头文件的位置
CPPFLAGS:=-I ../include -I /home/fgy/tools/include -I /home/fgy/pnglib/include
# 定义要连接的库
LDFLAGS  = -L /home/fgy/tools/lib -ljpeg -L /home/fgy/pnglib/lib -lz -lpng16
# 编译成库文件
SHARED_LIB=-shared -fPIC

libimg.so:$(SRC)
	$(CC) $(SHARED_LIB) -o $@ $(CPPFLAGS) $(LDFLAGS)